package com.ssy.lingxi.platform.manage.config;

import com.ssy.lingxi.platform.manage.service.IPlatformManageDataInitService;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * 系统启动后执行的方法
 * @author 万宁
 * @version 2.0.0
 * @date 2021-06-09
 */
@Configuration
@DependsOn("languageHolder")
public class PlatformManageServiceInitConfig {

    @Resource
    private IPlatformManageDataInitService platformManageDataInitService;

    @PostConstruct
    public void initPlatformManageService() {
        //初始化平台后台服务数据
        platformManageDataInitService.initPlatformManageServiceData();
    }
}
